package com.crm.service;

import com.crm.entity.Customer;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface CustomerService {
    public List<Customer> findAll();

    //权限查询
    public Customer saveCustomer(Customer customer); //新增或修改

    public void deleteCustomerById(String chanceId); //删除

    public void deleteCustomer(Customer customer);

    public Customer getCustomer(String chanceId); //按注解查询单条

    //按条件进行分页查询(动态SQL)
    public Page<Customer> findCustomer(String custName, String custRegion, Pageable pageable);
}
